package Binrary_Management_System.User;

import Binrary_Management_System.Book.BookList;
import Binrary_Management_System.ioPeration.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 何华树
 * Date: 2024-09-13
 * Time: 12:40
 */
public abstract class User {
    public String name;

    public abstract int menu();

    IOperation[] iOperations = new IOperation[]{};

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public  void doOperation(int choice, BookList bookList) {
        iOperations[choice].work(bookList);
    }
}
